<!doctype html>
<html lang="en" xmlns="http://www.w3.org/1999/html">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
<form  method="post" action="/servlet4">
    <input type="text" name="username" > <br>
    <input type="password" name="password" ><br>
    爱好:
    <input type="checkbox" name="hobby" value="1"> 篮球
    <input type="checkbox" name="hobby" value="2">足球
    <input type="checkbox" name="hobby" value="3">铅球 <br>
    <input type="submit" value="提交">
    </input>
</form>

</body>
</html>